home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / WE-BREAK.ZIP / P4DEF_03.INC < prev    next >
Encoding:
Text File  |  1997-02-28  |  4.5 KB  |  128 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //
  4. // p4def_03.inc
  5. //
  6. // Written By: Paul T. Dawson
  7. //             ptdawson@voicenet.com
  8. //             http://www.voicenet.com/~ptdawson
  9. //
  10. // All code and techniques are PUBLIC DOMAIN - have fun with it!
  11. //
  12. //------------------------------------------------------------------->
  13. //
  14. // This file builds one of the "dummies".
  15. //
  16. //------------------------------------------------------------------->
  17. //
  18. // Declare the *textures* for everything.
  19.  
  20.         #declare P4_Eye_Texture = texture { pigment { Gray80 } }
  21.         #declare P4_Glasses_Texture = texture { pigment{Gray50} }
  22.         #declare P4_Hair_Texture = texture { pigment { Black } }
  23.         #declare P4_Hat_Texture = texture { pigment { Gray20 } }
  24.         #declare P4_Lip_Texture = texture { pigment { Gray50 } }
  25.         #declare P4_Shirt_Texture = texture { pigment { Gray30 } }
  26.         #declare P4_Shoe_Texture = texture { pigment{ Gray50 } }
  27.         #declare P4_Shorts_Texture = texture { pigment {
  28.                 checker White, Black scale < 0.05, 100, 0.05 >  } }
  29.         #declare P4_Skin_Texture = texture { pigment { Gray40 } }
  30.  
  31. //------------------------------------------------------------------->
  32. //
  33. // Now choose *types* of things. You will have to read the directions
  34. // to see what numbers are legal here!
  35.  
  36.         #declare P4_Eye_Type = 1
  37.         #declare P4_Glasses_Type = 0
  38.         #declare P4_Hair_Type = 2
  39.         #declare P4_Hand_Type = 1
  40.         #declare P4_Hat_Type = 0
  41.         #declare P4_Mouth_Type = 1
  42.         #declare P4_Nose_Type = 2
  43.         #declare P4_Shirt_Type = 2
  44.         #declare P4_Shoe_Type = 1
  45.         #declare P4_Shorts_Type = 2
  46.  
  47. //------------------------------------------------------------------->
  48. //
  49. // Set the sizes of various things.
  50.  
  51.         #declare P4_Leg_Length = 36
  52.         #declare P4_Neck_Height = 3
  53.         #declare P4_Shirt_Height = 22
  54.         #declare P4_Shorts_Height = 35
  55.  
  56. //------------------------------------------------------------------->
  57. //
  58. // Choose the rotation values. Please read the directions!
  59.  
  60.         #declare P4_Hat_Rotate = < 0, 0, 0 >
  61.         #declare P4_Neck_Rotate = < 0, 20, 0 >
  62.         #declare P4_Waist_Rotate = < -10, 30, 0 >
  63.  
  64.         #declare P4_Left_Hand_Rotate = < 0, 0, 0 >
  65.         #declare P4_Right_Hand_Rotate = < 0, 0, 0 >
  66.  
  67.         #declare P4_Left_Elbow_Rotate = < 00, -70, 0 >
  68.         #declare P4_Right_Elbow_Rotate = < 00, 80, 0 >
  69.  
  70.         #declare P4_Left_Eyelid_Rotate = -40
  71.         #declare P4_Right_Eyelid_Rotate = -40
  72.  
  73.         #declare P4_Left_Knee_Rotate = < 0, 0, 0 >
  74.         #declare P4_Right_Knee_Rotate = < 0, 0, 0 >
  75.  
  76.         #declare P4_Left_Leg_Rotate = < 0, 0, -10 >
  77.         #declare P4_Right_Leg_Rotate = < 0, 0, 10 >
  78.  
  79.         #declare P4_Left_Shoulder_Rotate = < 10, -20, 30 >
  80.         #declare P4_Right_Shoulder_Rotate = < -30, -10, -70 >
  81.  
  82. //------------------------------------------------------------------->
  83. //
  84. // Create the optional "holding" object. This will go into the left
  85. // hand, and move with the hand. This is optional - just comment it
  86. // out if not needed, and set the flag to "false".
  87. //
  88. // The flag is necessary to prevent person #2 from carrying the object
  89. // that you gave to person #1. Set it to true or false.
  90.  
  91.         #declare P4_Holding_Flag = false
  92.  
  93. //------------------------------------------------------------------->
  94. //
  95. // Make another optional object - a "bracelet". This also has a flag
  96. // to set on/off. This prevents duplicate bracelets! The bracelet
  97. // should be at <0,0,0>, just like a standard torus.
  98.  
  99.         #declare P4_Bracelet_Flag = false
  100.  
  101. //------------------------------------------------------------------->
  102. //
  103. // Despite my attempts at using "realistic inches" as units, the
  104. // people always seem to end up 8 or 9 feet tall. This variable lets
  105. // you scale the person down to a normal size. Use the P4_TEST.POV
  106. // scene to see how tall your person actually is!
  107.  
  108.         #declare P4_Total_Scale = 80/100
  109.  
  110. //------------------------------------------------------------------->
  111. //
  112. // This is the height to move the person up, so his/her feet are on
  113. // the floor. Sorry, but because of bendable legs, this has to be
  114. // adjusted manually (by YOU). 8-)
  115.  
  116.         #declare P4_Y_Adjust = 31
  117.  
  118. //------------------------------------------------------------------->
  119. //
  120. // Now call "p4_main.inc" to create the object.
  121.  
  122.         #include "p4_main.inc"
  123.  
  124. //------------------------------------------------------------------->
  125. //
  126. // End of this file.
  127.  
  128.